package com.supermarket.business.dto;

import java.math.BigDecimal;
import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.supermarket.business.domain.SupermarketSalesDetail;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.supermarket.common.annotation.Excel;
import com.supermarket.common.core.domain.BaseEntity;

/**
 * 销售订单对象 sys_sales_order
 *
 * @author ruoyi
 * @date 2025-10-23
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SupermarketSalesOrderDTO extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单ID */
    private Long orderId;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderNumber;

    /** 销售时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "销售时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date salesTime;

    /** 收银员ID */
    @Excel(name = "收银员ID")
    private Long cashierId;

    /** 客户信息 */
    @Excel(name = "客户信息")
    private String customerInfo;

    /** 订单总金额 */
    @Excel(name = "订单总金额")
    private BigDecimal totalAmount;

    /** 支付方式 */
    @Excel(name = "支付方式")
    private String paymentMethod;

    /** 创建人id */
    private Long createId;

    /** 更新人id */
    private Long updateId;

    /** 状态(0未结算 1已结算 2已取消) */
    private String status;

    /** 销售明细信息 */
    private List<SupermarketSalesDetail> supermarketSalesDetailList;

}
